//
//  ViewController.m
//  英语统考
//
//  Created by unisedu on 15/12/7.
//  Copyright © 2015年 CaoFei. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()
@property (weak, nonatomic) IBOutlet UIWebView *webView;


@end

@implementation ViewController



- (void)viewDidLoad {
    [super viewDidLoad];
    [self setTitle:self.fileName];
    
    
    NSString* path = [[NSBundle mainBundle] pathForResource:self.fileName ofType:self.type];
    NSURL* url = [NSURL fileURLWithPath:path];
    NSURLRequest* request = [NSURLRequest requestWithURL:url] ;
    [self.webView loadRequest:request];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
